/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package main.common;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import main.rendering.Tiles;

/**
 *
 * @author williamh
 */
public class Tile {
    protected BufferedImage img = Tiles.SPRITE_DEFAULT;
    
    public Tile(String s) {
        try {
            img = ImageIO.read(new File(s));
        } catch (IOException ex) {
            Logger.getLogger(Tile.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    public BufferedImage getImg(){
        return img;
    }
    
    public void setImg(BufferedImage b) {
        img = b;
    }
    
}
